
//
//  YPTabAndNivAttribute.m
//  project
//
//  Created by 姚敦鹏 on 2018/10/13.
//  Copyright © 2018年 rocHome. All rights reserved.
//

#import "YPTabAndNivAttribute.h"

#define view_bg_Color       HEXColor(0xF3F3F3)
#define nav_bg_Color        HEXColor(0x3981E6)
#define bar_bglColor        HEXColor(0xFFFFFF)

#define barItem_normalColor HEXColor(0x8C8C8C)
#define barItem_selectColor HEXColor(0x3981E6)

@implementation YPTabAndNivAttribute

- (void)tabBarAndNavigationConfig
{
    self.navColor       = nav_bg_Color;
    self.viewBackColor  = view_bg_Color;
    self.backImage      = [UIImage imageNamed:@"nav_back"];
    self.titleColor     = [UIColor whiteColor];
    self.titleFont      = [UIFont boldSystemFontOfSize:18];
    
    self.tabbarBgColor         = bar_bglColor;
    self.tabbarItemNormalColor = barItem_normalColor;
    self.tabbarItemSelectColor = barItem_selectColor;
}

-(UIColor *)navColor{
    if (!_navColor) {
        return  [UIColor whiteColor];
    }
    return _navColor;
}

-(UIColor *)viewBackColor{
    if (!_viewBackColor) {
        return [UIColor whiteColor];
    }
    return _viewBackColor;
}

KSingleToolM(Instanll);
@end
